Skip to content

Rebase kubernetes 1.7.6 #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 166 commits into from
Oct 4, 2017
Merged

Conversation

ironcladlou
Copy link

@ironcladlou ironcladlou commented Sep 22, 2017

Rebase for kubernetes 1.7.6.

/cc @deads2k @soltysh

Paul Weil and others added 12 commits September 22, 2017 10:19
:100644 100644 a9b6b37... 2328ffc... M	pkg/apiserver/api_installer.go
:100644 100644 c561ddb... 17ef5df... M	pkg/kubelet/server.go
…vider

Previously, if the kubelet tried to register itself with the API server,
and was rejected due to the external ID changing, it would delete the
node object and recreate it.  This commit causes it to tolerate
a change in ExternalID when the ExternalID is not being provided by a
cloud provider, assuming the new ExternalID is either the node's
(metadata) name, or one of node's addresses.

:100644 100644 0c4fdc1... 8deaa82... M	pkg/kubelet/kubelet.go
:100644 100644 ac7025a... dce57e1... M	pkg/apimachinery/registered/registered.go
:100644 100644 b32534e... 3e694fc... M	pkg/controller/serviceaccount/tokens_controller.go
:100644 100644 eaa35e6... 2a50982... M	pkg/client/cache/fifo.go
:100644 100644 0f2ceb8... 667c168... M	pkg/client/cache/fifo_test.go
Doesn't offer enough use, complicates creation and setup.
We don't run system pods so waiting for them is somewhat pointless
@ironcladlou
Copy link
Author

Build is currently broken in at least one major way:

origin.sha Outdated
@@ -0,0 +1 @@
9009938f67
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed, we need to create this at the end.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still outstanding

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

origin.sha Outdated
@@ -1 +1 @@
9009938f67
87ceff292ab199dc902b52f942951f1b7b88e4fa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed either.

@ironcladlou ironcladlou force-pushed the rebase-1.7.6 branch 3 times, most recently from 3d4044b to be7153e Compare September 26, 2017 13:00
@ironcladlou ironcladlou changed the title WIP: Rebase kubernetes 1.7.6 Rebase kubernetes 1.7.6 Sep 27, 2017
@soltysh
Copy link

soltysh commented Sep 29, 2017

This needs ironcladlou#25 to merge in and then it'll be ready for merge to fork.

@@ -1,20 +1,4 @@
// +build !ignore_autogenerated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should drop this commit and regenerate at the end

@@ -71,7 +71,7 @@ func init() {
addControllerRole(rbac.ClusterRole{
ObjectMeta: metav1.ObjectMeta{Name: saRolePrefix + "cronjob-controller"},
Rules: []rbac.PolicyRule{
rbac.NewRule("get", "list", "watch", "update").Groups(batchGroup).Resources("cronjobs").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "update", "delete").Groups(batchGroup).Resources("cronjobs").RuleOrDie(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit needs repicking... this isn't the permission we ended up granting upstream

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 modifying this:

  • b384813 - UPSTREAM: 49133: add controller permissions to set blockOwnerDeletion (6 days ago)
  • 6b69907 - UPSTREAM: 49133: update permissions to allow block owner deletion (7 days ago)

We could squash them into one.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squashed

@@ -50,7 +50,6 @@ import (
"k8s.io/kubernetes/pkg/volume/local"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two should cancel and be able to be dropped:

UPSTREAM: <drop>: hack out portworx to avoid double proto registration
UPSTREAM: revert: dcb5eef2d8a6d14816d8d1f767f0d0016b84dcdf: "UPSTREAM: <drop>: hack out portworx to avoid double proto registration"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@@ -72,7 +72,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {

// this test wants powerful permissions. Since the namespace names are unique, we can leave this
// lying around so we don't have to race any caches
framework.BindClusterRoleInNamespace(c.Rbac(), "edit", f.Namespace.Name,
framework.BindClusterRoleInNamespace(c.RbacV1beta1(), f.ClientPool, "edit", f.Namespace.Name,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two should cancel and be able to both be dropped:

UPSTREAM: revert: c502d10: <carry>: match kube rbac setup in e2es with openshift kinds
UPSTREAM: <carry>: match kube rbac setup in e2es with openshift kinds

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@@ -0,0 +1,26 @@
package pod
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two should cancel and both be able to be dropped:

UPSTREAM: Revert "UPSTREAM: <drop>: keep old pod available"
UPSTREAM: <drop>: keep old pod available

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@@ -746,14 +746,12 @@ func TestDiscoveryReplaceAliases(t *testing.T) {
{
name: "all-replacement",
arg: "all",
expected: "buildconfigs,builds,imagestreams,deploymentconfigs,pods,replicationcontrollers,services,statefulsets.apps,horizontalpodautoscalers.autoscaling,jobs.batch,deployments.extensions,replicasets.extensions",
// expected: "buildconfigs,builds,imagestreams,deploymentconfigs,deployments,horizontalpodautoscalers,replicationcontrollers,routes,services,statefulsets,jobs,replicasets,pods",
expected: "pods,replicationcontrollers,services,statefulsets.apps,horizontalpodautoscalers.autoscaling,jobs.batch,deployments.extensions,replicasets.extensions",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squash these commits:

UPSTREAM: <drop>: restore normal alias test
UPSTREAM: <drop>: add origin resource shortcuts to kube shortcut restmapper

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squashed

@@ -138,10 +138,10 @@ func TestProxyHandler(t *testing.T) {
apiService: &apiregistration.APIService{
ObjectMeta: metav1.ObjectMeta{Name: "v1.foo"},
Spec: apiregistration.APIServiceSpec{
Service: &apiregistration.ServiceReference{},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop this commit completely, this got merged upstream and the secure test is below

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

pkg/api/types.go Outdated
@@ -1580,6 +1580,9 @@ const (
// Capability represent POSIX capabilities type
type Capability string

// CapabilityAll represent all POSIX capabilities types.
Copy link

@liggitt liggitt Oct 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop these (they cancel):

UPSTREAM: <carry>: allow to use * as a capability in Security Context
UPSTREAM: revert: 1b2aacbd4010757b6978ddc40bfc8d89495c89dd: <carry>: allow to use * as a capability in Security Context Constraints.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@@ -0,0 +1,28 @@
/*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop both of these (they cancel):

UPSTREAM: <drop>: drop post 3.7 rebase. allows disabled aggregator 
UPSTREAM: revert: 7fc9d38a7a: <drop>: drop post 3.7 rebase. allows disabled aggregator

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

@@ -251,18 +251,20 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
return nil
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop both of these, they cancel:

UPSTREAM: revert: fbf1f04: <drop>: disable openapi aggregation
UPSTREAM: <drop>: disable openapi aggregation 

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

Robert Rati and others added 16 commits October 3, 2017 08:56
:100644 100644 2b0ff8c... 3d05185... M	pkg/cloudprovider/providers/aws/tags.go
…h verbosity.

:100644 100644 b123c5a... 7e25e48... M	plugin/pkg/scheduler/algorithm/predicates/BUILD
:100644 100644 95939bf... 06deb30... M	plugin/pkg/scheduler/algorithm/predicates/predicates.go
:100644 100644 74a5174... aa6f711... M	cmd/cloud-controller-manager/app/options/options.go
:100644 100644 28f906e... 49f7932... M	cmd/cloud-controller-manager/controller-manager.go
:100644 100644 4e77a7f... 7d071da... M	cmd/kube-controller-manager/app/controllermanager.go
:100644 100644 dec8d1f... be69e12... M	cmd/kube-controller-manager/app/options/options.go
:100644 100644 4c99e4a... a42543a... M	pkg/apis/componentconfig/types.go
:100644 100644 2fb837b... 0074fe3... M	pkg/cloudprovider/cloud.go
:100644 100644 a55061a... 5ab1b9e... M	pkg/cloudprovider/providers/aws/aws.go
:100644 100644 3d05185... bb63fce... M	pkg/cloudprovider/providers/aws/tags.go
:100644 100644 ca2e48b... 1b4e645... M	pkg/cloudprovider/providers/azure/azure.go
:100644 100644 f8e2b3f... 1b86d82... M	pkg/cloudprovider/providers/cloudstack/cloudstack.go
:100644 100644 dcca77f... a92c2d9... M	pkg/cloudprovider/providers/fake/fake.go
:100644 100644 90e2570... 0086678... M	pkg/cloudprovider/providers/gce/gce.go
:100644 100644 9462ff0... 3670813... M	pkg/cloudprovider/providers/mesos/mesos.go
:100644 100644 08a3556... 5073cf4... M	pkg/cloudprovider/providers/openstack/openstack.go
:100644 100644 8273c0b... 496c444... M	pkg/cloudprovider/providers/ovirt/ovirt.go
:100644 100644 f33e9c2... dd7b065... M	pkg/cloudprovider/providers/photon/photon.go
:100644 100644 cf6ca3d... 21782f4... M	pkg/cloudprovider/providers/rackspace/rackspace.go
:100644 100644 63383a0... 35d6088... M	pkg/cloudprovider/providers/vsphere/vsphere.go
UPSTREAM: 49117: Add apiserver metric for response sizes split by namespace scope
UPSTREAM: 49678: Report non-resource URLs in max-in-flight correctly
UPSTREAM: 49678: Timeout filter returns 504 and an inconsistent error body
UPSTREAM: 50123: Report pod logs as CONNECT in metrics
UPSTREAM: 52237: Add scope to all apiserver metrics and report resource scope

:100644 100644 a787797... cb63725... M	pkg/registry/core/pod/rest/log.go
:100644 100644 d856440... 435a746... M	staging/src/k8s.io/apiserver/pkg/endpoints/handlers/proxy.go
:100644 100644 7a412a3... 9651c6f... M	staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
:100644 100644 2b5a3e0... 0671314... M	staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
:100644 100644 989517c... 07696d3... M	staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go
:100644 100644 77aa7d0... 612678c... M	staging/src/k8s.io/apiserver/pkg/server/filters/BUILD
:100644 100644 b5192bc... a0208ed... M	staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go
:100644 100644 79e185e... fc302b2... M	staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
:100644 100644 19894b4... 6bc496b... M	staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
:100644 100644 9914272... 6283a6c... M	staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
:100644 100644 7a97202... 37f6ee0... M	pkg/controller/volume/attachdetach/attach_detach_controller.go
:100644 100644 5525301... 3aaf715... M	pkg/controller/volume/attachdetach/cache/actual_state_of_world.go
:100644 100644 88ae500... 81e5653... M	pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go
:100644 100644 ec01191... 12da11b... M	pkg/controller/volume/attachdetach/reconciler/reconciler_test.go
…:nodes group

:100644 100644 1697ad6... 4c9cd35... M	plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
:100644 100644 5b66624... 87e8d85... M	plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-role-bindings.yaml
:100644 100644 d7da1ba... 9eec353... M	pkg/apis/componentconfig/helpers.go
:100644 100644 b001433... 613d41c... M	pkg/util/taints/taints.go
:100644 100644 3122821... 72987e3... M	pkg/controller/node/timed_workers_test.go
:100644 100644 b6045ab... 223ef46... M	cmd/kubelet/app/server.go
:100644 100644 49f641a... 9f4753b... M	pkg/kubelet/cadvisor/BUILD
:100644 100644 8f8b3e8... a8020a5... M	pkg/kubelet/cadvisor/cadvisor_linux.go
:100644 100644 d28d71f... 7dbbde8... M	pkg/kubelet/cadvisor/cadvisor_unsupported.go
:100644 100644 4de44d7... 0033f92... M	pkg/kubelet/cadvisor/cadvisor_windows.go
:100644 100644 2a97ba3... 9ad6267... M	pkg/kubelet/cadvisor/types.go
:100644 100644 bd30c66... 42248f6... M	pkg/kubelet/cadvisor/util.go
:100644 100644 ce50a10... 32f3f6a... M	test/e2e_node/environment/conformance.go
:100644 100644 9f4753b... c5de9da... M	pkg/kubelet/cadvisor/BUILD
:100644 100644 7dbbde8... be42d39... M	pkg/kubelet/cadvisor/cadvisor_unsupported.go
:100644 100644 0033f92... 404dd05... M	pkg/kubelet/cadvisor/cadvisor_windows.go
:000000 100644 0000000000... a9e88b5... A	pkg/kubelet/cadvisor/helpers_linux.go
:000000 100644 0000000000... af90f15... A	pkg/kubelet/cadvisor/helpers_unsupported.go
:100644 100644 42248f6... bd30c66... M	pkg/kubelet/cadvisor/util.go
:100644 100644 a9e88b5... 94af5d3... M	pkg/kubelet/cadvisor/helpers_linux.go
:100644 100644 b85f6c8... d1dfa73... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go
:100644 100644 b5f310a... 528b709... M	staging/src/k8s.io/apiserver/pkg/server/options/audit.go
:100644 100644 82005d6... 897aa13... M	staging/src/k8s.io/apiserver/plugin/pkg/audit/log/BUILD
:100644 100644 9f38180... dec402e... M	staging/src/k8s.io/apiserver/plugin/pkg/audit/log/backend.go
:100644 100644 526710c... 78082d2... M	staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
:100644 100644 3c52d52... c5340c8... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/BUILD
:100644 100644 9ff9c45... 2de7bc1... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go
:000000 100644 0000000000... a3c192f... A	staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit.go
:000000 100644 0000000000... fb9eeeb... A	staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit_test.go
:100644 100644 87a8251... 78fa466... M	staging/src/k8s.io/apiserver/pkg/server/config.go
:100644 100644 2de7bc1... c65c611... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go
:100644 100644 2fcce4d... 195340e... M	staging/src/k8s.io/apiserver/pkg/audit/policy/reader.go
:100644 100644 be76364... 3eabbd3... M	staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go
@ironcladlou ironcladlou force-pushed the rebase-1.7.6 branch 2 times, most recently from 2c4da71 to a08f5ee Compare October 3, 2017 13:12
@ironcladlou
Copy link
Author

Addressed all comments (I think), and added a new commit at the end with new code generation results. PTAL.

@liggitt
Copy link

liggitt commented Oct 3, 2017

where did UPSTREAM: <carry>: allow PV controller recycler template override (3dc98da) go?

edit: we don't need it, and I asked you to drop it. carry on.

@liggitt
Copy link

liggitt commented Oct 3, 2017

LGTM

@liggitt
Copy link

liggitt commented Oct 3, 2017

are tests passing on this branch? if so, let's pull this into the origin branch, and get LGTM/green there before merging this

@soltysh
Copy link

soltysh commented Oct 3, 2017

@liggitt double checking, if yes I'll merge it in.

@soltysh
Copy link

soltysh commented Oct 3, 2017

1.7.x rebase

@soltysh
Copy link

soltysh commented Oct 4, 2017

Double checked it works fine. The only problem I've struggled was related to failures in integration tests which were cause by the low open files limit. After I bumped it to 102400 the integration suite passed.
@smarterclayton @mfojtik @ironcladlou @deads2k @sttts fyi, in case you hit this

Merging.

@soltysh soltysh merged commit ad0dbed into openshift:release-1.7.6 Oct 4, 2017
@sttts
Copy link

sttts commented Oct 4, 2017

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.